import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//全局引入
//import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './pluins/element.js'
import './assets/css/common.css'
import './assets/icon/iconfont.css'

// Vue.use(ElementUI)

Vue.config.productionTip = false
//全局过滤器
Vue.filter('formateDate', function(v) {
  let date = v ? new Date(v) : new Date()
  let str = ''
  str += date.getFullYear() + '-'
  str += (date.getMonth() + 1 + '').padStart(2, '0') + '-'
  str += (date.getDate() + '').padStart(2, '0') + ' '
  str += (date.getHours() + '').padStart(2, '0') + ':'
  str += (date.getMinutes() + '').padStart(2, '0') + ':'
  str += (date.getSeconds() + '').padStart(2, '0')
  return str
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
